package com.shixi.shixitraining.shixitraining.ui.tabhome.adapter;

import android.content.Context;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.ui.tabhome.entity.AuthenBean;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/9/21.
 */
public class AuthenDateAdapter extends BaseAdapter<AuthenBean.DataBean.CoursepriceBean> {
    public AuthenDateAdapter(Context context, List<AuthenBean.DataBean.CoursepriceBean> data) {
        super(context, data);
    }

    @Override
    public void convert(BaseRecycleHolder holder, AuthenBean.DataBean.CoursepriceBean item, int position) {
        holder.setText(R.id.train_course_date,item.getDate());
        holder.setText(R.id.train_course_price,item.getPrice());
    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_train_date;
    }


}
